package com.comida.model;

import java.util.*;
import java.util.Date;

public class Meal {

	// a meal is uniquely identified by a time and a user
	
	// TODO: Need to create SQL statements resident within object for data retrevial
	//			will be used by DataBlob object to execute query
	//			results will be stored in
	
	// A user can haz multiple meals
	// each meal is a snapshot in time of what a particular user is eating
	// a meal consists of:
	//	1. a list of food eaten
	//	2. the time it was consumed
	//  3. (optional) category (breakfast, lunch, dinner)
	ArrayList<Food> FoodEaten = null;
	Date date = null;
	String quality = null;
	String category;
	
	/* TODO: create methods
	 * 	add a food
	 *	get list of food eaten
	 *	get/set consumption time
	 *	get/set quantity
	 */
	
	public int getQuantity( Food food ) {
		// should be a count of how many times a particular food shows up 
		int quantity = 0;
		
		// use foodid from the food object to count number of instances in the food array
		
		return quantity;
	}
}
